const express = require('express')
const compression = require('compression')
const app = express();

// 注册中间件
// 一定要把这行代码写到静态资源托管之前
app.use(compression());
app.use(express.static('./dist'))

app.listen(80, () => {
    console.log('server is running at http://127.0.0.1');
})